//去空格
function checkspace(checkstr) {
	var str = '';
	for(i = 0; i < checkstr.length; i++) 
	{
		str = str + ' ';
	}
	return (str == checkstr);
}
function check_job(formlist){	
   	if (checkspace(formlist.jobname.value))
	{alert("请输入应聘职位！");
	formlist.jobname.focus();
	return false;
	}
	
 	if (checkspace(formlist.realname.value))
	{alert("请输入你的姓名！");
	formlist.realname.focus();
	return false;
	}
	
 	if (checkspace(formlist.phone.value))
	{alert("请输入联系电话！");
	formlist.phone.focus();
	return false;
	}
 	
 	if (checkspace(formlist.email.value))
	{alert("请输入电子邮箱！");
	formlist.email.focus();
	return false;
	}
   	if (formlist.email.value.indexOf("@")=="-1"||formlist.email.value.indexOf(".")=="-1")
	{alert("请输入电子邮箱！");
	formlist.email.focus();
	return false;
	}
  	if (checkspace(formlist.file.value))
	{alert("请输入上传附件！");
	formlist.file.focus();
	return false;
	}
}